/*jslint sloppy: true */
/*global require */
var LM = require('../global');
require('./list.html');

LM.controller('TaskList', function ($scope, Task, $routeParams) {
	$scope.queryConfig.clear().setActive(true);
	$scope.navConfig.setHref('#/project/' + $routeParams.projectId).setType('back');

	$scope.taskList = Task.query({
		mask: 'comment,schemas,createtime',
		projectId: $routeParams.projectId
	});
});
